﻿using System;
using System.Collections.Generic;
using System.Text;
using SubManager.Interfaces;
using SubManager.Entity;
using SubManager.DAL;

namespace SubManager.Logic
{
    public class User : IUser
    {
        public User()
        {
            
        }

        #region IUser 成员

        public bool Create(UserEntity entity)
        {
            return UserDao.Create(entity);
        }

        public bool Retrive(UserEntity entity)
        {
            return UserDao.Retrive(entity);
        }

        public bool Update(UserEntity entity)
        {
            return UserDao.Update(entity);
        }

        public bool Delete(UserEntity entity)
        {
            return UserDao.Delete(entity);
        }

        public List<UserEntity> Query(UserEntity entity)
        {
            return UserDao.Query(entity);
        }

        #endregion

    }
}
